﻿//////////////////////////////////////////////////////////////////
//
// Goods.cs
//
// Copyright (c) 2012 Dan Pike. All rights reserved
//
// Refer to license.txt for any license restrictions.
// 
using Entities.Materials;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
   public class Goods : CityEntity
   {
      //////////////////////////////////////////////////////////////////////////
      //
      public Goods(World world)
         : base(world)
      {
         world.almanac.materials.ForEach(material => allGoods_.Add(material, 0.0));
      }

      //////////////////////////////////////////////////////////////////////////
      //
      public double this[Material material]
      {
         get { return allGoods_[material]; }
         set { allGoods_[material] = value; }
      }

      //////////////////////////////////////////////////////////////////////////
      //
      private Dictionary<Material, double> allGoods_ = new Dictionary<Material, double>();
   }
}
